The MakeIndex program helps in making an index. It is described in a separate document, available through the printdoc command.